package cn.agiledata.bank.information.service;

import cn.agiledata.bank.hibernateBean.MobileChargeRecord;

/**
 * 手机充值Service
 * 
 * @author 马贤波
 *
 */
public interface MobileChargeService {

	/** 
	 * 判断当天是否可以再次充值
	 */
	public boolean isLegalCharge(Long accountId, int tradTime);
	/**
	 * 创建充值记录
	 * 
	 * @param mobileNum
	 * @param chargeType
	 * @param email
	 * @return
	 */
	public MobileChargeRecord createRecord(String mobileNum,String chargeType,String email, long accountId);
	
	/**
	 * 根据订单编号取得手机充值记录
	 * 
	 * @param recordNo
	 * @return
	 */
	public MobileChargeRecord getRecordByNo(String recordNo);
	
	/**
	 * 支付成功，修改充值记录状态
	 * 
	 * @param recordNo
	 * @param transId
	 * @return
	 */
	public MobileChargeRecord recordPayConfirm(String recordNo,String transId);
	
	public void sendMail(MobileChargeRecord record);
}
